using UnityEngine;
using System.Collections;

public class Difficulty : MonoBehaviour {
	
	public static int difficulty;
	public static string name = ".......";
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI()
    	{
     		 GUI.Box(new Rect( 50, 50, Screen.width - 100, Screen.height - 100),"Difficulty");
			Score.lives = 3;
			Score.tempScore = 0;
			Score.score = 0;
		
			if(GUI.Button(new Rect( 300, 100, Screen.width - 600, 75), "Easy"))
			{
				difficulty = 1;
				Application.LoadLevel("Game");
			}
		
			if(GUI.Button(new Rect( 300, 200, Screen.width - 600, 75), "Medium"))
			{
				difficulty = 2;
				Application.LoadLevel("Game");
			}  
		
			if(GUI.Button(new Rect( 300, 300, Screen.width - 600, 75), "Hard"))
			{
				difficulty = 3;
				Application.LoadLevel("Game");
			}
		
		
			GUI.Label(new Rect(300, 425, Screen.width - 600, 20), "Please Enter name");
			name = GUI.TextField(new Rect(300, 445, Screen.width - 600, 20), name, 25);
 
   		}
}
